<ion-view view-title="搜索">
 	<ion-content>
 		<ion-list>
 			<ion-item class="item-input-inset" style="padding:0">
	 			<div class="item-input-wrapper">
					<input ng-model="name.value" type="text" style="width:100%" placeholder="请输入关键字">
					<a ng-click="search()" class="button button-clear ion-ios-search" style="float:right"></a>
	 			</div>
			</ion-item>
	
			<ion-item class="item-thumbnail-left item-icon-right" ng-repeat="product in productList" href="#/info/{{product.pid}}" >
				<img class="full-image" ng-src="{{product.thumbnail}}" >
				<div>
		          	<h2>{{product.pname}}</h2>
		          	<p>{{product.standard}}</p>
		        	<span style="font-size:20px;font-weight: bold;color:darkorange">{{product.shop_price}}元</span>
		        	<span style="text-decoration: line-through">{{product.market_price}}元</span>
				</div>
				<a ng-click="addCart($index)" class="button button-clear icon ion-ios-cart-outline" style="margin:auto;"></a>
			</ion-item>
		</ion-list>
		<ion-infinite-scroll on-infinite="loadMore()" 
		ng-if="moreDataCanBeLoaded()"
		distance="1%">
		</ion-infinite-scroll>
 	</ion-content>
</ion-view>